<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <!--select2-->

    <!--zTree css-->

    <jsp:include page="../page/public.jsp"></jsp:include>
    <link rel="stylesheet" href="/resource/plugins/validator/jquery.validator.css">

</head>

<body class="sidebar-mini skin-blue-light fixed">
<!-- Site wrapper -->
<div class="wrapper">
    <jsp:include page="../page/header.jsp"></jsp:include>
    <jsp:include page="../page/left-sidebar.jsp"></jsp:include>

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h2></h2>
            <ol class="breadcrumb">
                <li >用户中心</li>
                </li>
                <li class="active">用户管理</li>
            </ol><!-- .breadcrumb -->
        </section>

        <!-- Main content -->
        <section class="content">
            <!-- Default box -->
            <div class="box box-primary">
                <div class="box-header with-border">
                    <form class="form-horizontal" id="news_search">
                        <div class="row">
                            <div class="col-md-2 col-sm-2 col-xs-12">
                                <input type="text" class="form-control" id="search_name" placeholder="用户名">
                            </div>

                            <div class="col-md-1 col-sm-1 col-xs-12">
                                <button type="button" class="btn btn-primary" id="btn_search" >
                                    <i class="fa fa-search"></i> 查询</button>
                            </div>

                            <%--<shiro:hasPermission name="AGENCY:ADD">--%>
                            <%--<div class="col-md-1 col-sm-1 col-xs-12">--%>
                                <%--<a class="btn btn-primary"  data-toggle="modal" href="#addArea" onclick="clearAddModal()">--%>
                                    <%--<i class="fa fa-plus"></i> 新增</a>--%>
                            <%--</div>--%>
                            <%--</shiro:hasPermission>--%>
                        </div>
                    </form>
                </div>
                <div class="box-body">
                    <table id="area_table"></table>
                </div>
            </div>
        </section>
    </div>
    <!-- /.content-wrapper -->
    <jsp:include page="../page/footer.jsp"></jsp:include>
</div>
<!-- ./wrapper -->
<div class="modal fade bs-example-modal-lg" id="addArea" tabindex="-1" role="dialog"
     aria-labelledby="agencyModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content" >
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-hidden="true">×</button>
                <h4 class="modal-title" id="areaModalLabel"></h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal"  role="form" id="area_form" >
                    <input type="hidden" id="id4add" name="id">
                    <div class="form-group">
                        <label class="control-label col-sm-3"><font color="#c00">*</font>用户名:</label>
                        <div class="col-sm-6">
                            <input type="text" id="username4add" name="name" class="form-control" placeholder="请输入客户名称" >
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-sm-3">密码:</label>
                        <div class="col-sm-6">
                            <input type="text" id="password4add" name="contact" class="form-control" placeholder="请输入联系人" >
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-sm-3">角色:</label>
                        <div class="col-sm-6">
                            <select id="role4add" name="role_id" class="form-control">
                                <option value="">选择</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group" id="client">
                        <label class="control-label col-sm-3">客户名称:</label>
                        <div class="col-sm-6">
                            <select id="company4add" name="company_id" class="form-control">
                                <option value="">选择</option>
                            </select>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="btn-area-save"
                        data-loading-text="提交中...">保存</button>
            </div>
        </div>
    </div>
</div>


<script src="/resource/plugins/validator/jquery.validator.js"></script>
<script src="/static/user/user.js"></script>
</body>
</html>